package ru.urfc.portal.model.documents;

import java.util.Date;

import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.xml.bind.annotation.XmlRootElement;

import ru.urfc.portal.model.SpectrObject;
import ru.urfc.portal.model.admins.User;

@XmlRootElement(name = "action")
public class AuditLogEntry extends SpectrObject {

	public User user;
	public Date actionDate;
	@ManyToOne(fetch = FetchType.EAGER)
	public DocumentAction action;
	@ManyToOne(fetch = FetchType.EAGER)
	public DocumentType documentType;
	
	public AuditLogEntry() {
	}

	public AuditLogEntry(Long id, User user, Date actionDate, DocumentAction action, DocumentType documentType) {
		super(id);
		this.user = user;
		this.actionDate = actionDate;
		this.action = action;
		this.documentType = documentType;
	}

}
